<template>
  <div id="tabbar">
    <van-tabbar v-model="active">
      <van-tabbar-item @click="goHome" class="iconfont icon-shouye">首页</van-tabbar-item>
      <van-tabbar-item @click="goSpecial" class="iconfont icon-biaoqiankuozhan_zhuanti-390">专题</van-tabbar-item>
      <van-tabbar-item @click="goCategory" class="iconfont icon-fenlei">分类</van-tabbar-item>
      <van-tabbar-item @click="goCart" class="iconfont icon-ziyuan">购物车</van-tabbar-item>
      <van-tabbar-item @click="goProfile" class="iconfont icon-wode">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name:'TabBar',
  data() {
    return {
      active: 0,
    }
  },
  methods:{
    goHome(){
      this.$router.push('/home')
    },
    goSpecial(){
      this.$router.push('/special')
    },
    goCategory(){
      this.$router.push('/category')
    },
    goCart(){
      this.$router.push('/cart')
    },
    goProfile(){
      this.$router.push('/profile')
    }
  }
}
</script>

<style lang="less" scoped>

</style>